package org.simple.controller;

import org.simple.feign.system.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jihu
 * date 2022-09-19
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("/get")
    public String test(){
        return testService.test();
    }

    @GetMapping("/get2")
    public String test2(){
        return  testService.test2();
    }
}
